package bx.com.smartcashier.utils;

import android.content.Context;
import android.content.SharedPreferences;

import java.io.Serializable;

import bx.com.smartcashier.activity.WelcomeActivity;

/**
 * Created by zll on 2018-11-27.
 */
public class MyDateUtils implements Serializable {
    static String token;


    public static String getToken() {
        return token;
    }

    public static void setToken(String token) {
        MyDateUtils.token = token;
        SharedPreferences sp = WelcomeActivity.mContext.getSharedPreferences("User", Context.MODE_PRIVATE);
        SharedPreferences.Editor editor = sp.edit();
        editor.putString("token", token);
        editor.commit();
    }
}
